package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleDao {
    public Set<Role> findByUserId(Integer userId);

    public Page<Role> findByCondition(String queryString);

    public void add(Role role);

    public void setRoleAndPermission(Map<String, Integer> map);

    public List<Role> findAll();

    public List<Integer> findRoleIdsByUserId(Integer userId);
}
